<template>
<div>
  <h1>学籍成绩</h1>
  <el-table :data="scoreform"  border stripe>
    <el-table-column label="课程名称" prop="currmName" ></el-table-column>
    <el-table-column label="授课老师"prop="teacherName"></el-table-column>
    <el-table-column label="所得绩点"prop= "point"></el-table-column>
    <el-table-column label="考试成绩" prop="score"></el-table-column>

  </el-table>
</div>
</template>

<script>
export default {

    data(){
      return {
        studentName:global.username,
        scoreform: []
      }
    },
  created() {
    this.getScore();
  },
  methods: {
    getScore() {
      this.$http.get('student/scores', {
        params: {
          id: this.studentName
        }
      }).then(
          res => {
            this.scoreform = res.data.data;
          }, res => {
            console.log(res.state);
          })
    },
  }
}
</script>

<style scoped>

</style>